package cn.tedu._05mvcboot03.pojo.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserArticleDTO {
    @Pattern(regexp = "^.{1,20}$",message = "标题不能为空，长度是1-20")
    private String title;
    @Pattern(regexp = "^.{10,500}$",message = "内容不能为空，长度为10-500")
    private String content;
}
